home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8706 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  43 lines

  1. Newsgroups: comp.lang.c++
  2. Path: lugb.latrobe.edu.au!latcs1!charan
  3. From: charan@latcs1.lat.oz.au (Software Access)
  4. Subject: Using PASCAL DLL's
  5. X-Nntp-Posting-Host: ipc3.cs.latrobe.edu.au
  6. Message-ID: <DnD76n.9IF@latcs1.lat.oz.au>
  7. Sender: news@latcs1.lat.oz.au (news)
  8. Organization: Comp.Sci & Comp.Eng, La Trobe Uni, Australia
  9. X-Newsreader: TIN [version 1.2 PL2]
  10. Date: Mon, 26 Feb 1996 04:01:34 GMT
  11.  
  12.  
  13.     Hi C++ Programmers..
  14.  
  15.         I want to use a PASCAL ( yeah...it's pascal ) DLL
  16. in my C++ program. I am using the imdef function to create the
  17. definitions for the functions in the pascal dll. 
  18.  
  19.     Say something like this.
  20.     
  21.         
  22.     WEP     @1
  23.     triple  @2
  24.  
  25.   Then i use implib to make a library depending on the def file.
  26.  
  27.   Then i declare something like this...
  28.  
  29.  
  30.  
  31.     IMPORTS
  32.         TRYDLL.triple
  33.  
  34.  
  35.    The BC45 compiler gives me a syntax error!. What am i doing wrong ?.
  36.    There is no such example in the manuals. Symantec C++ manual has some
  37. code to explain, but that doesn't help either.
  38.  
  39.     Email to : charan@latcs1.cs.latrobe.edu.au
  40.  
  41.         Thanx in Advance.
  42.  
  43.